Auto merge of #1620 - Eljay:empty-package-name, r=alexcrichton
authorbors <bors@rust-lang.org>
Sun, 17 May 2015 20:06:53 +0000 (20:06 +0000)
committerbors <bors@rust-lang.org>
Sun, 17 May 2015 20:06:53 +0000 (20:06 +0000)
commitc60f58568d7098a720b9614a2d1f2f05acc41761
treeffee9d3c5c7ff75e0f8b8979021f6296cf02f66b
parenta48358155c90467ed9c897930dd0da4614605dac
parent10ac930fdd2371cb050ab286df72df94393c3c85
Auto merge of #1620 - Eljay:empty-package-name, r=alexcrichton

Some simple validation for package/target names. Currently failure for these cases happens later in rustc (e.g. "crate name must not be empty") or at the os level (e.g. "Is a directory" error when package name is empty on linux). Better to handle this earlier so it's consistent across platforms.

Still could do with a lot of validation for invalid characters etc. though.